package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户签到信息对象 user_sign_in
 *
 * @author ruoyi
 * @date 2025-05-08
 */
public class UserSignIn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 签到记录的唯一标识 */
    private Long userSignInId;

    /** 用户 ID，关联用户表的 user_id */
    @Excel(name = "用户 ID，关联用户表的 user_id")
    private Long userId;

    /** 签到类型，new_user 表示新用户签到，daily 表示日常签到 */
    @Excel(name = "签到类型，new_user 表示新用户签到，daily 表示日常签到")
    private String signType;

    /** 签到日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签到日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date signDate;

    /** 累计签到天数 */
    @Excel(name = "累计签到天数")
    private Long totalSignDays;

    public void setUserSignInId(Long userSignInId)
    {
        this.userSignInId = userSignInId;
    }

    public Long getUserSignInId()
    {
        return userSignInId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setSignType(String signType)
    {
        this.signType = signType;
    }

    public String getSignType()
    {
        return signType;
    }
    public void setSignDate(Date signDate)
    {
        this.signDate = signDate;
    }

    public Date getSignDate()
    {
        return signDate;
    }
    public void setTotalSignDays(Long totalSignDays)
    {
        this.totalSignDays = totalSignDays;
    }

    public Long getTotalSignDays()
    {
        return totalSignDays;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("userSignInId", getUserSignInId())
                .append("userId", getUserId())
                .append("signType", getSignType())
                .append("signDate", getSignDate())
                .append("totalSignDays", getTotalSignDays())
                .append("createTime", getCreateTime())
                .toString();
    }
}
